<!DOCTYPE html>
<html lang="zh-cn">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>blog</title>
    <!-- Bootstrap -->
    <link href="./bower_components/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
    <link href="./bower_components/bootstrap/dist/css/bootstrap-theme.css" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="./stylesheets/style.css">
   <link rel="shortcut icon" href="./favicon.ico" title="Favicon" />
  </head>
  <body>
  <nav class="navbar navbar-inverse" role="navigation">
  <div class="container-fluid">
    <!-- Brand and toggle get grouped for better mobile display -->
    <div class="navbar-header">
      <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <a class="navbar-brand" href="#">Blog</a>
    </div>
    <!-- Collect the nav links, forms, and other content for toggling -->
    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
      <ul class="nav navbar-nav">
        <li class="active"><a href="/">主页</a></li>
        <li><a href="#">手记</a></li>
        <li><a href="users">我的主页</a></li>
      </ul>
      <form class="navbar-form navbar-right" role="search">
        <div class="form-group">
          <input type="text" class="form-control" placeholder="Search">
        </div>
        <button type="submit" class="btn btn-default">搜索</button>
      </form>
      <ul class="nav navbar-nav navbar-right">
        <li><a href="logins">登录</a></li>
        <li><a href="registers">注册</a></li>
          </ul>
        </li>
      </ul>
    </div><!-- /.navbar-collapse -->
  </div><!-- /.container-fluid -->
</nav>
<div class="container">
   <article>
   	<header>
   		<p>程序员自己的问答社区</p>
   		<div class="ask">
   			我要提问
   		</div>
   	</header>
   	<ul class="ul1">
   		<li>推荐</li>
   	   <li>最新</li>
   	   <li>等待回答</li>
   	</ul>
   	<ul class="ul2">
   		<li>云服务器代金券，想要趁现在</li>
   		<li>实力派Linux来了，更有linu图书免费送</li>
        <% for(var i=0; i<articals.length; i++) {%>
              <li>
              <h1><%-articals[i] .title%></h1>
              <p class="content"><%-articals[i] .content%><p>
              <button type="button" class="btn btn-danger deletebtn"  data-id ='<%-articals[i] ._id%>'>删除</button>
              <button type="button" class="btn btn-info updatebtn"  data-id ='<%-articals[i] ._id%>'><a href="/articles/post">修改</a></button>
              </li>
         </li>
      <% } %>		
   	</ul>
    <div>
    </div> 
   </article>
   <aside>
   	<p><label>推荐分类</label><span>全部分类</span></p>
   	<ul>
   		<li>
   		<p class="pli">Jquery是继承prototype之后又一个优秀的javascript框架</p>
   		</li>
   		<li>
   		<p class="pli">Linux是一套免费使用和自由传播的类Unix操作系统</p>
   		</li>
   		<li>
   		<p class="pli">html是Hyper Text Mark-up Lanuage的简称</p>
   		</li>
   	</ul>
   </aside>
   </div>
  </body>
  <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
  <!--<script src="http://libs.baidu.com/jquery/1.10.2/jquery.min.js"></script>-->
    <script src="./bower_components/jquery/dist/jquery.min.js"></script>
    <script src="./bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
    <script src="./javascripts/myjs.js"></script>      
</html>